package com.ltxtiyu.video.common;


/**
 * 业务返回码定义规则如下：<br>
 * 模块名_方法名_返回码<br>
 * 每个方法至少保留一项默认返回码<br>
 * ret：如010101：01(模块)01(方法)01(异常)<br>
 * 
 * @author owner
 *
 */
public enum RetEnum {
	

	// 基本
	SUCCESS("0", "成功"),
	FAIL("-1","操作失败"),
    PARAM_ERROR("1", "参数错误"),
	// 认证
	TOKEN_ERROR("2", "oauthtoken错误"), TOKEN_EXPIRE("3", "oauthtoken过期"), WX_OPEN_ID_ERROR("5", "用户未注册"), WX_MOBILE_BIND_ERROR(
			"6", "用户未绑定手机号"),WX_BIND_OTHER_MOBILE("7","微信已绑定其他手机号"),
    PB_USER_NOT_REG("8","未注册答球"),
    MOBILE_BIND_OTHER_WX("9","该手机号已被注册"),
	// 系统内部问题
	SERVER_ERROR("10", "服务器内部错误"),
	/** 无权执行此操作 */
	NO_AUTHORITY_ERROR("11", "无权执行此操作"),
    LOGIN_PASSWORD_BLANK("12", "该手机号登陆密码为空,请设置"),

	UPDATE_SUCCESS("14","更新成功" ),
	UPDATE_FILE("15","更新失败" ),
    H5_USER_NOT_LOGIN("16","用户未登陆"),
    GET_UNIONID_FAIL("17","获取unionId失败"),
    PIC_UPLOAD_FAIL("20","上传图片失败"),
    SYSTEM_IS_BUSY("30","系统繁忙,请稍后重试"),
    RUNTIME_ERROR("40","网络异常"),

    MOBILE_IS_BLANK("100","手机号不能为空"),
    CAPTCHA_IS_BLANK("101","验证码不能为空"),
    PASSWORD_IS_BLANK("102","密码不能为空"),
	// 首页
    REQUEST_PARAM_ERROR("010001","请求参数错误"),
    REQUEST_RESULT_IS_BLANK("010002","搜索结果为空"),
    REQUEST_INPUT_TEXT_LENGTH_TOO_LONG("010003","输入文本过长"),
    REQUEST_DATA_NOT_EXIST("010004","查找的数据不存在"),
	// 登录认证
    OLD_PASSWORD_IS_BLANK("020000","旧密码不能为空"),
	NEW_PASSWORD_IS_BLANK("020001","新密码不能为空"),
    NEW_PASSWORD_IS_ERROR("020002","旧密码错误"),
    WX_OPEN_ID_IS_BLANK("020003","openId为空"),
    WX_IS_BIND("020004","微信已经被其他用户绑定"),
	OAUTH_CHECK_REGISTER_EXIST("020101", "用户已存在"), OAUTH_CHECK_INEXISTENCE("020102", "用户不存在"), OAUTH_CHECK_BANNED(
			"020103", "用户被封停"), OAUTH_CAPTCHA_SEND_FAIL("020201", "短信发送失败"), OAUTH_CAPTCHA_REPEAT_ERROR(
			"020202", "请勿重复请求"), OAUTH_CAPTCHA_CHECK_ERROR("020203", "验证码错误"), PASSWORD_NOT_EXIST("020204", "用户密码不存在"),
            PASSWORD_IS_EXIST("020205", "用户密码存在"), OAUTH_PIC_CAPTCHA_CHECK_ERROR("020206", "图片验证码错误"),
            OAUTH_REGISTER_FAIL("020301", "注册失败"), OAUTH_LOGIN_FAIL("020401", "用户名/密码错误"),
            OAUTH_REFRESH_TOKEN_FAIL("020501",
			"refreshToken错误"), OAUTH_RESET_PASSWORD("020601", "重置密码失败"), OAUTH_NEED_MORE_INFO("020701",
			"请先完善个人名片资料"),OAUTH_INVITE_ERROR("020801", "邀请码错误"),GET_PIC_FAIL("020901", "获取图片失败"),
	OAUTH_REFRESH_TOKEN_ERROR("020510","刷新rongyunToken错误"),

    MOMENT_NOT_EXIST("030000","该动态不存在"),
    MOMENT_COMMENT_NOT_EXIST("030001","该评论不存在"),
    MOMENT_FOLLOW_ERROR("030002","不能关注自己"),
    MOMENT_COMMENT_DELETED("030003","该评论不存在"),
    MOMENT_PRIVATE_DO_NOT_LIKE("030010","私密作品无法点赞"),
    MOMENT_PRIVATE_DO_NOT_COMMENT("030011","私密作品无法评论"),
    MOMENT_IS_PRIVATE("030021","作品已删除"),

    TOPIC_NOT_EXIST("031000","该话题不存在"),

    USER_VIEW_IS_NOT_EXIST("040001","查询的用户不存在"),

    MUSIC_IS_NOT_EXIST("050001","该音乐不存在"),

    VIDEO_COLLECTION_PART_NOT_PLAY("060001","存在无法播放的视频"),
    ;


	private String ret;
	private String msg;

	RetEnum(String ret, String msg) {
		this.ret = ret;
		this.msg = msg;
	}

	public String getRet() {
		return ret;
	}

	public void setRet(String ret) {
		this.ret = ret;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
